package com.chuangjiangx.member.coupon.ddd.domain.model;


public enum VerifyTerminal {
    APP("移动端",1),
    PC("PC收银台",2);

    public final String name;
    public final Integer code;

    VerifyTerminal(String name,Integer code) {
        this.name = name;
        this.code = code;
    }

    public static VerifyTerminal getTerminal(Integer code) {
        for (VerifyTerminal verifyTerminal : values()) {
            if (verifyTerminal.code.equals(code)) {
                return verifyTerminal;
            }
        }
        return null;
    }

}
